package com.lcm.weam.util;

public class BaseTypeUtil {
    public static Double[] doubleArrToDoubleArr(double[] arr){
        Double[] res = new Double[arr.length];
        for (int i = 0; i < arr.length; i++) {
            res[i] = arr[i];
        }
        return res;
    }
    public static Double[][] double2ArrToDouble2Arr(double[][] arr){
        Double[][] res = new Double[arr.length][arr.length];
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length; j++) {
                res[i][j] = arr[i][j];
            }
        }
        return res;
    }

    public static double[] DoubleArrTodoubleArr(Double[] arr){
        double[] res = new double[arr.length];
        for (int i = 0; i < arr.length; i++) {
            res[i] = arr[i];
        }
        return res;
    }
}
